<template>
	<view class="wrap">
		<view class="innerItem">
			<view class="logo">
				<image class="imgLogo" src="../../../static/images/logo.png"></image>
			</view> 
			<view class="mineItem" @tap="goFwxy"><view class="mineTit">用户协议</view> 
				<view class="iconfont icon-gengduo"></view>
			</view>
			<view class="mineItem" @tap="goYszc"><view class="mineTit">隐私政策</view>
				<view class="iconfont icon-gengduo"></view>
			</view>
			<view class="mineItem" @tap="goSqgf"><view class="mineTit">社区规范</view>
				<view class="iconfont icon-gengduo"></view>
			</view>
			<view class="mineItem" v-if="currVersion != ''">
				<view class="mineTit">当前版本</view>
				<view class="hasFlex">
					<view class="currVersion">{{currVersion}}</view>
				</view>
			</view>
		</view>
		<view class="bq">Copyright ©2022 和心云(北京)心理咨询有限公司</view>
	</view>
</template>

<script>
	export default {
		data(){
			return{
				currVersion:''
			}
		},
		onShow(){
			const accountInfo = wx.getAccountInfoSync();
			this.currVersion = accountInfo.miniProgram.version;
		},
		methods:{
			checkVersion(){
				this.config.Update(true,'minePage');
			},
			goFwxy(){
				uni.navigateTo({
					url:'../../protocol/protocol?xyId=1'
				})
			},
			goYszc(){
				uni.navigateTo({
					url:'../../protocol/protocol?xyId=2'
				})
			},
			goSqgf(){
				uni.navigateTo({
					url:'../../protocol/protocol?xyId=4'
				})
			},
		}
	}
</script>

<style lang='scss'>
	@import '@/static/scss/helpCen.scss';
	page{
		background: $pss-bg-primary;
	}
</style>